package com.dartfar.workflow.model;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 流程定义任务节点表
 * @author 王琦
 *
 */

@Entity
@Table(name = "T_WorkflowDeployTask")
public class WorkflowDeployTask {
	
	//主键
	private int id;
	//任务名称
	private String taskName;
	//委派方式
	private String assigneType;
	//委派执行人
	private String assignees;
	//委派人角色
	private String assigneRoles;
	//流程部署信息
	private WorkflowDeployment workflowDeployment;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTaskName() {
		return taskName;
	}
	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}
	public String getAssigneType() {
		return assigneType;
	}
	public void setAssigneType(String assigneType) {
		this.assigneType = assigneType;
	}
	public String getAssignees() {
		return assignees;
	}
	public void setAssignees(String assignees) {
		this.assignees = assignees;
	}
	public String getAssigneRoles() {
		return assigneRoles;
	}
	public void setAssigneRoles(String assigneRoles) {
		this.assigneRoles = assigneRoles;
	}
	
	@ManyToOne(cascade = {CascadeType.ALL}, optional = true)
	public WorkflowDeployment getWorkflowDeployment() {
		return workflowDeployment;
	}
	public void setWorkflowDeployment(WorkflowDeployment workflowDeployment) {
		this.workflowDeployment = workflowDeployment;
	}

	
}
